#include <iostream>

#include "number_vector.h"

using namespace std;

int main() {
    NumberVector num_vec{1, 2, 3, 4, 5};
    NumberVector num_vec2 = num_vec;
    num_vec2[2] = 0;
    cout << "The first vector:\n" << num_vec << "\n";
    cout << "The second vector (same first vector, but third element changed by 0):\n" << num_vec2 << "\n";

    cout << "Print a vector using a for loop:\n";
    for(int el: num_vec) {
        cout << el << ' ';
    }
    cout << "\nPrint a vector using overloading:\n";
    cout << num_vec << "\n";

    cout << "Size of vector: " << num_vec() << "\n";
    cout << "Third element: " << num_vec[2] << "\n";
    cout << "Vector, multiplied by 5:\n" << num_vec * 5 << "\n";
    cout << "Second element from end: " << *(num_vec.end() - 3) << "\n";
}
